package p45_spring代理的特点;

import lombok.extern.slf4j.Slf4j;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.springframework.stereotype.Component;

@Aspect
@Component
@Slf4j
public class MyAspect {
    //增强目标类的所有方法
    @Before("execution(* p45_spring代理的特点.Target.*(..))")
    public void before() {
       log.info("before...");
    }
}
